package cn.openea.perpartner.common.swagger.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * 读取项目相关配置
 * @author Administrator
 */
@Component
@ConfigurationProperties(prefix ="openea")
public class SwaggerProperties {
    /**项目名称*/
    private static String name;
    /**版本*/
    private static String version;
    /**版权年份*/
    private static String copyrightYear;

    private static boolean addressEnabled;


    public static String getName() {
        return name;
    }

    public void setName(String name) {
        SwaggerProperties.name = name;
    }

    public static String getVersion() {
        return version;
    }

    public void setVersion(String version) {
        SwaggerProperties.version = version;}

    public static String getCopyrightYear() {return copyrightYear;}

    public void setCopyrightYear(String copyrightYear) {
        SwaggerProperties.copyrightYear = copyrightYear;}
    public static boolean isAddressEnabled()
    {
        return addressEnabled;
    }

    public void setAddressEnabled(boolean addressEnabled)
    {
        SwaggerProperties.addressEnabled = addressEnabled;
    }

}
